<script setup>
import { useRoute } from 'vue-router';
const route = useRoute();
console.log(route.query.name, route.query.age)
</script>

<template>
    <div>
        {{ $route.query.name }}-{{ $route.query.age }}
    </div>
</template>

<style scoped></style>